/**
 * Main Page
 */
$blue: #3568de;
// $gradientColor: linear-gradient(to top, #00c6ff, #0072ff);
$gradientColor: linear-gradient(90deg, #3568de, #5582de);


body {
  overflow: hidden;
  font-size: 16px;
  background: $gradientColor;

}

.main {
  width: 100%;
  height: 100%;
}

/* 箭头 */
.arrow {
  display: block;
  width: 42px;
  height: 18px;
  position: absolute;
  bottom: 48px;
  left: 50%;
  margin-left: -21px;
  z-index: 99;
  animation: arrow-ani 3s infinite;
}

.arrow-w {
  @include bg-wh('../img/icon/arrow_w.png');
}

.arrow-r {
  @include bg-wh('../img/icon/arrow_r.png');
}

.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  overflow: hidden;

  .page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
  }
  &.swiper-slide-active,
  &.swiper-slide-next,
  &.swiper-slide-prev {
    .page {
      display: block;
    }
  }
}

.home {
  &>div>div {
    position: absolute;
    background-repeat: no-repeat;
  }
  &-1 {
    top: 100px;
    left: 200px;
    @include bg-wh('../img/icon/home-1.png');
  }
  &-2 {
    top: 25%;
    left: 15%;
    @include bg-wh('../img/icon/home-2.png');
  }
  &-3 {
    bottom: 18%;
    left: 36%;
    @include bg-wh('../img/icon/home-3.png');
  }
  &-4 {
    top: 50%;
    left: 50%;
    width: 460px;
    height: 460px;
    margin-left: -230px;
    margin-top: -230px;
    background-image: url(../img/bubble-w.png);
    background-size: contain;
    transform: scale(4);
  }
  &-5 {
    bottom: 6.5%;
    left: 44.5%;
    @include bg-wh('../img/icon/home-5.png');
  }
  &-txt {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    margin-left: -150px;
    margin-top: -150px;
    font-weight: bold;
    font-size: 32px;
    transform: scale(0);
  }
}

@mixin moveAndFadeAnimation($distance, $duration, $delay) {
  animation: move-and-fade $duration linear infinite;
  animation-delay: $delay;

  @keyframes move-and-fade {
    0% {
      opacity: 0;
      transform: translateY(0);
    }
    50% {
      opacity: 1;
    }
    75% {
      opacity: 0;
    }
    100% {
      transform: translateY(-$distance);
      opacity: 0;
    }
  }
}

.meet {
  background-color: $gradientColor;

  &>div>div,
  &>div>div>div {
    background-repeat: no-repeat;
  }
  &-1 {
    margin: 196px auto 0;
    @include bg-wh('../img/icon/meet-1.png');
  }
  &-2 {
    position: absolute;
    left: 50px;
    bottom: 60px;
    @include bg-wh('../img/icon/meet-2.png');
  }
  &-bubble {
    margin: 66px auto 0;
    padding: 1px;
    width: 520px;
    height: 550px;
    border-radius: 10px;
    background-color: #fff;
  }
  &-txt {
    width: 371px;
    height: 228px;
    font-size: 32px;
  }
}

.city {
  background-color: $gradientColor;

  &>div>div {
    background-repeat: no-repeat;
  }
  &-1 {
    margin: 196px auto 0;
    @include bg-wh('../img/icon/meet-1.png');
  }
  &-2 {
    position: absolute;
    left: 50px;
    bottom: 60px;
    @include bg-wh('../img/icon/meet-2.png');
  }
}

// .city.swiper-slide-active {
//   span {
//     .red-dot-flash {
//       animation: flash-ani 2s infinite ease;
//     }
//   }
// }


/**
 * keyframes
 */
@keyframes arrow-ani {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes flash-ani {
  0% {
    opacity: 0.5;
    transform: scale(1, 1);
  }
  50% {
    opacity: 0.1;
    transform: scale(.8, .8);
  }
  100% {
    opacity: 0.5;
    transform: scale(1, 1);
  }
}
